class Talk:
    def __init__(self, content: str, tag: int=0):
        self.__content = content
        self.__duration = self._calculatorDuration()
        self.__tag = tag

    @property
    def duration(self)->int:
        return self.__duration

    @property
    def tag(self)->int:
        return self.__tag

    @property
    def content(self)->str:
        return self.__content

    def _calculatorDuration(self)->int:
        elements = self.__content.split(' ')
        last_element = elements[-1]
        if last_element.endswith('min'):
            return int(last_element[:-3])
        elif last_element == 'lightning':
            return 5
        return 0

    def verifyContent(self):
        elements = self.__content.split(' ')
        if len(elements) == 0:
            return False

        last_element = elements[-1]

        is_min = last_element.endswith('min')
        is_lightning = last_element.endswith('lightning')

        if is_min or is_lightning:
            return True
        # print(" '%s' is invalided" % self.__content)
        return False



